Method and device for checking the error-free function of modules in bus system comprising a central unit

ABSTRACT

The invention relates to a method for the testing of the error-free function of modules in a bus system with a central unit as well as suitable modules, a corresponding central unit and a corresponding bus system. For this purpose, an especially agreed-upon silence-command is provided, in response to which the modules in the error-free condition switch into a silent operating mode, and also expressly transmit no data particularly in response to the data requests allocated to the modules. By means of this silence-command, at first all modules can be set into the silent operating mode, and then by means of the agreed data request it can be tested whether all modules still switch into the silent operating mode. A module that nonetheless still transmits is recognized as faulty and is, for example, deactivated. Subsequently, respectively all modules except for a module to be tested are set into the silent operating mode, and by means of data requests agreed-upon for this module to be tested and/or not agreed-upon for this module it is tested whether the module transmits its data in response to the agreed data request(s) and remains silent in response to the not-agreed data requests. Additionally, the position of the return-transmitted data can be determined and compared with a nominal or desired position, which is not possible as a rule in the normal operation.

The invention relates to a method for the testing of the error-free function of modules in a bus system with a central unit.

Bus systems for the data exchange between a central unit and a plurality of modules by means of a data protocol frame or framework, also for occupant protection systems, are, for example, known from the DE 196 09 076, DE 196 16 293, EP 0 849 122, or DE 198 13 954. In that context, a position within the data protocol frame is allocated to each module, at which position the module, in the error-free condition, transmits data to the central unit and/or the other modules in response to a command for a data inquiry or request in the normal operation.

Beside the failure of modules, which can be recognized from the missing or lack of the data in response to the data request, further errors that would interfere with the data exchange can, however, arise in the bus system or the modules. Thus, it was recognized, that modules were transmitting their data in response to data request commands other than those allocated to them, due to interferences in their memory, and partially also no longer transmit to the position allocated to them, due to interferences in the transmitting circuit, and thus an interference of the entire data exchange arises.

An object of the invention is to present a suitable method for the testing of the error-free function of modules in a bus system as well as corresponding apparatuses. Additionally, suitable modules as well as a corresponding central unit and a corresponding bus system are presented.

In that context, the basic underlying idea is an especially agreed command, in short called silence-command in the following, in response to which the modules in the error-free condition switch over into a silent operating mode and transmit no data even particularly in response to the agreed data request. This silence-command opens a series of testing possibilities.

Thus, respectively all of the modules except for a module to be tested are set into the silent operating mode and thereafter at least one, preferably all, data requests agreed for this module to be tested and/or at least one, preferably all of the data requests not agreed for this module are transmitted.

Thereby, it is tested or checked whether the module transmits its data in response to the agreed data request(s) and remains silent in response to the not agreed data requests. In the event of an error, an error routine is carried out, the corresponding module is, for example, deactivated or a reset is carried out.

Since the other modules are silent, additionally the position of the return-transmitted data can be determined and compared with a nominal or desired position. This is, as a rule, not possible in the normal operation, because therein the sections in the data protocol frame allocated to the modules are directly contiguous, and upon shiftings or offsets an overlap will be caused, from which it can no longer be distinguished who transmits when and where.

Since, however, possibly one module suffers interference in such a manner that it does not recognize the silence-command, preferably additionally in advance at first all modules are set into the silent operating mode, thereafter at least one, preferably all, data requests agreed at least for one of the modules are transmitted and thereby it is tested, whether one of the modules transmits data in response to the agreed data request(s) despite the silent operating mode.

The invention shall be described in greater detail in the following in connection with example embodiments and figures. Short description of the figures:

FIG. 1 bus system;

FIG. 2 schematic flow diagram of the preferred further developed method;

FIG. 3 sketch of the testing of the position of the transmitted data in the protocol frame.

FIG. 1 sketches a bus system consisting of a central unit 1 as well as a plurality of modules 2.1 . . . 2.n, that are connected with the central unit 1 via one (or more) bus line(s) 3 for the data exchange. The structure of the bus system, sketched as a conductor line here in FIG. 1, in this context is freely selectable and the invention is utilizable for all bus architectures, especially also for the ring, daisy-chain or parallel bus systems. This bus system finds application for the data exchange between a central unit of an occupant protection system in a vehicle as well as the modules connected upstream of sensors and/or occupant protection devices for the data exchange.

For each module, for example the module 2.x in FIG. 1, an allocated position D2.x (compare FIG. 3) is stored in memory within the data protocol frame and at least one command for a data request (D1 in FIG. 3) is provided, in response to which the modules in the error-free condition in the normal operation transmit data to the central unit 1 and/or the other modules 2.1 . . . 2.n.

Preferably, at least for a group of modules 2.1 . . . 2.n, a data request D1 directed in common to this group, thus a so-called polling request, can be used, in response to which the modules 2.1 . . . 2.n of the group respectively transmit their data successively one after another to their position D2.1 . . . D2.n. Without further efforts, all modules 2.1 . . . 2.n can also be read-out via a single common polling request.

The special feature of the central unit 1 as well as also of the modules 2.1 . . . 2.n is that a command for silence, in short silence-command in the following, is provided, in response to which the modules 2.1 . . . 2.n in the error-free condition switch into a silent operating mode, and which expressly no longer transmit any data in response to the agreed data request D1.

By means of this silence-command, in a preferred further development of the method according to the claim 2 in connection with claim 1, at first all modules can be set into the silent operating mode and then by means of the agreed data requests it can be tested whether all modules still switch into the silent operating mode. The progress or flow thereof is sketched in FIG. 2 up to the first testing step “testing whether a module replies”. This testing connected upstream makes it possible to recognize so-called babbling idiots, i.e. continuously transmitting modules. Via the header information of the data return-transmitted by the module, this module suffering interference can be identified and an error routine can be started. At that time, a deactivation of the respective module is provided.

Subsequently, as in FIG. 2 as a loop process with a running variable x from 1 to n (n=number of the modules), respectively all modules except for a module (2.x) to be tested are set into the silent operating mode, and in connection with data requests agreed for this module to be tested and/or not agreed for this module, it is tested whether the module transmits its data in response to the agreed data request(s) and remains silent in response to the not-agreed data requests. If the same data request is allocated to all modules, then it can be tested via a pause time or a feigned deviating data request, whether the modules correspondingly react thereto, i.e. no longer transmit. The switch-over into the silent operating mode may be carried out, for example as sketched in FIG. 2, in such a manner that at first all modules 2.1 . . . 2.n receive the silence-command, and this is again lifted subsequently respectively for the module 2.x that is to be tested. Additionally, a command for the lifting of the silent operating mode is still provided to all modules 2.1 to 2.n in common.

Additionally, during the testing, the position s2.x _(actual) of the return-transmitted data D2.x for the module (2.x) to be tested can be determined and compared with a nominal or desired position s2.x _(nominal), which is not possible as a rule in the normal operation. Such a step would be integratable in FIG. 2, for example in the testing “Does module x reply?” to “(all) data request(s) authorized for the module x”. The position testing, however, becomes especially apparent in connection with FIG. 3. Thus, at first an error-free data transmission of the module 2.x in response to the data request D1 to position D2.x is sketched in FIG. 3 a, whereby the data transmission of the other modules, sketched here for “.x−1 and 2.x+1, precedes or follows.

If, in the normal operation, there arises an erroneous position allocation or, as sketched in FIG. 3 b, a shifting of the beginning of transmission from s2.x _(nominal) to s2.x _(actual), then there arises in each case a superposition (illustrated with diagonal hatching) of the data of two modules (here D2.x−1 & D2.x). Thereby, the data not only become unusable, it is also not unambiguously recognizable whether now the module 2.x−1 or the module 2.x is faulty. The silence command is especially useful exactly at this point, because it becomes possible, that only the module 2.x transmits, and one can thus recognize the shifting of the transmission beginning from s2.x _(nominal) to s2.x _(actual) in the position range D2.x−1 for the module 2.x−1, as illustrated in FIG. 3 c. The position range D2.x−1 for the module 2.x−1 is illustrated with dashed lines in FIG. 3 c, since module 2.x−1 is expressly not transmitting of course due to the silence-command. 

1-8. (canceled)
 9. Method for the testing of the error-free function of modules (2.1 . . . 2.n) in a bus system with a central unit (1) for the data exchange by means of a data protocol frame, a) whereby an allocated position (D2.x) within the data protocol frame is prescribed for each module (2.x), b) at least one data request (D1) is agreed-upon, in response to which at least one of the modules (2.x) in the error-free condition in the normal operation transmits data to the central unit (1) and/or the other modules (2.1 . . . 2.n), c) characterized in that, a command for silence is provided, in response to which the modules (2.1 . . . 2.n) in the error-free condition switch into a silent operating mode and transmit no data in response to the agreed data request (D1), whereby d) initially all modules (2.1 . . . 2.n) are set into the silent operating mode, e) subsequently the agreed data request (D1) is transmitted, and f) in connection therewith it is tested whether one of the modules (2.1 . . . 2.n) transmits data in response to the agreed data request (D1) despite the silent operating mode.
 10. Method according to claim 9, whereby respectively also the position (s2.x actual) of the transmitted data is detected and compared with the prescribed position (s2.x nominal).
 11. Method for the testing of the error-free function of modules (2.1 . . . 2.n) in a bus system with a central unit (1) for the data exchange by means of a data protocol frame, a) whereby an allocated position (D2.x) within the data protocol frame is prescribed for each module (2.x), b) for each module (2.x) at least one data request (D1) is agreed-upon, in response to which this module (2.x) in the error-free condition in the normal operation transmits data to the central unit (1) and/or the other modules (2.1 . . . 2.n), c) characterized in that, a command for silence is provided, in response to which the modules (2.1 . . . 2.n) in the error-free condition switch into a silent operating mode and transmit no data in response to the agreed data request (D1), whereby d) respectively all of the modules (2.1 . . . , 2.x, . . . 2.n) except for a module (2.x) to be tested are set into the silent operating mode, e) subsequently at least one data request (D1) agreed-upon for this module (2.x) to be tested is transmitted, and f) in connection therewith it is tested whether the module (2.x) transmits its data in response to the agreed data request.
 12. Method according to claim 11, characterized in that, b1) for one module (2.x) at least one first data request (D1) is agreed-upon, in response to which the module (2.x) in the error-free condition in the normal operation transmits data to the central unit (1) and/or the other modules (2.1 . . . 2.n), b2) a second data request is provided, but not agreed-upon for this module (2.x), d) and respectively all modules (2.1 . . . , 2.x, . . . 2.n) except for this module (2.x) are set into the silent operating mode, e2) subsequently the second data request not agreed-upon for this module is transmitted, and f2) in connection therewith it is tested whether the module (2.x) is silent in response to the not-agreed second data request.
 13. Method according to claim 11, whereby respectively also the position (s2.x actual) of the transmitted data is detected and compared with the prescribed position (s2.x nominal).
 14. Central unit (1) for a bus system for the data exchange with a plurality of modules (2.1 . . . 2.n) by means of a data protocol frame, whereby in the central unit (1) a) for each module (2.x) an allocated position (D2.x) within the data protocol frame is stored in memory, b) at least one command for a data request (D1) is provided, in response to which the modules in the error-free condition in the normal operation transmit data to the central unit (1) and/or the other modules (2.1 . . . 2.n), characterized in that c) the central unit is configured for the transmitting of a command for silence, in response to which the modules (2.1 . . . 2.n) in the error-free condition switch into a silent operating mode and transmit no data in response to the agreed data request (D1).
 15. Module (2.1 . . . 2.n) for a bus system for the data exchange between a central unit (1) and a plurality of these modules (2.1 . . . 2.n) by means of a data protocol frame, whereby a) in each module (2.x) an allocated position (D2.x) within the data protocol frame is stored in memory, b) at least one command for a data request (D1) is provided, in response to which the module (2.x) in the error-free condition in the normal operation transmits data to the central unit (1) and/or the other modules characterized in that c) the module (2.x) is configured in such a manner so that, in response to a command for silence, in the error-free condition, it switches into a silent operating mode and transmits no data in response to the agreed data request (D1).
 16. Bus system comprising a plurality of modules according to claim 15 and a central unit for the data exchange with the plurality of modules by means of a data protocol frame, whereby in the central unit (1) a) for each module (2.x) an allocated position (D2.x) within the data protocol frame is stored in memory. b) at least one command for a data request (D1) is provided, in response to which the modules in the error-free condition in the normal operation transmit data to the central unit (1) and/or the other modules (2.1 . . . 2.n), characterized in that c) the central unit is configured for the transmitting of a command for silence, in response to which the modules (2.1 . . . 2.n) in the error-free condition switch into a silent operating mode and transmit no data in response to the agreed data request (D1), and d) the modules are connected via a bus line (3) with the central unit (1) for the data exchange.
 17. Bus system according to claim 16, characterized in that at least for one group of modules (2.1 . . . 2.n), a data request (polling-request) (D1) directed in common to this group is provided, in response to which the modules (2.1 . . . 2.n) transmit their data successively one after another respectively to their position (D2.1 . . . D2.n).
 18. Occupant protection system in a vehicle including a bus system according to claim 16, with a central unit (1) as well as modules (2.1 . . . 2.n) of sensors and/or occupant protection devices, characterized in that the data exchange between the central unit (1) and the modules (2.1 . . . 2.n) is carried out by means of the bus system. 